import { request } from '@/utils/request';
const Api = {
  list: '/setting/pay/list',
  add: '/setting/pay',
};

// 列表
export function getPayList(params: any) {
  return request.get({
    url: Api.list,
    params,
  });
}

// 新增
export function add(data: any) {
  return request.post({
    url: Api.add,
    data,
  });
}

// 详情
export function getInfo(id: string | number) {
  return request.get({
    url: `${Api.add}/${id}`,
  });
}

// 编辑
export function edit(data: any) {
  return request.put({
    url: Api.add,
    data,
  });
}

// 删除
export function Delete(id: string) {
  return request.delete({
    url: `${Api.add}/${id}`,
  });
}
